package com.ebt.m.proposal_v2.bean;

import java.io.Serializable;

/**
 * 保险选项
 *
 * @author archer.qi
 *         Created on 2017/5/12.
 */
public class InsuranceOption implements Serializable {

    public String fieldName; // 选项字段名称，如保障期间 -》“CoveragePeriod”
    public String value; // 选项的值，用于计算，如保障终身 -> "-105"
    public String displayName; // 显示的值，用于显示，如“终身”

    public InsuranceOption(InsuranceOption org){
        this.fieldName = org.fieldName;
        this.value = org.value;
        this.displayName = org.displayName;
    }
    public InsuranceOption() {
        fieldName = "";
        value = "";
        displayName = "";
    }

    public InsuranceOption(String fieldName, String value, String displayName) {
        this.fieldName = fieldName;
        this.displayName = displayName;
        this.value = value;
    }

    @Override
    public String toString() {
        return "{fieldName: " + fieldName + "\n"
                + "displayName: " + displayName + "\n"
                + "value: " + value + "}";
    }
}
